package com.codeOfDoom.Sets.SetsDeck
{
	import com.codeOfDoom.Sets.SetsCard.Card;
	import com.codeOfDoom.Sets.SetsCard.SetCardHelpers.CardColor;
	import com.codeOfDoom.Sets.SetsCard.SetCardHelpers.CardShading;
	import com.codeOfDoom.Sets.SetsCard.SetCardHelpers.CardShape;
	
	import mx.collections.ArrayCollection;

	public class SetsDeck extends ArrayCollection implements IDeck 
	{
		public function SetsDeck()
		{
			initializeDeck();
		}
		
				
		public function initializeDeck():void{
			var card:Card;
			for each (var color:CardColor in CardColor.COLORS)
				for each (var shape:CardShape in CardShape.SHAPES)
					for each (var shading:CardShading in CardShading.SHADINGS)						
						for (var number:int = 1; number <= 3;number++){
							card = new Card(number,color.toString(),shading.toString(), shape.toString());
							this.addItem(card);
						}
		}
		
		

	}
}